import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入自定义指令文件
import {isHasButton} from '@/directives/has.ts';

import App from './App.vue'
import router from './router'
//引入路由守卫
import './permisstion'
const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
isHasButton(app);
app.mount('#app')
